package com.dgt.trade.service.impl;

import com.dgt.trade.dao.IActionDao;
import com.dgt.trade.domain.ActionLog;
import com.dgt.trade.service.IActionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ActionServiceImpl implements IActionService {
	
	@Autowired
	private IActionDao actionDao;
	
	@Override
	public boolean recordAction(long id) {
		boolean bool =false;
		try {
			actionDao.updateActionLog(id);
			bool=true;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return bool;
	}

	@Override
	public List<ActionLog> getActionLogList() {
		List<ActionLog>  list =actionDao.getActionLogList();
		return list;
	}

}
